package org.yufan.admin.service;

import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by zxd on 2019/3/5
 **/
public interface BaseService<T> {

    public void insert(T t);

    public void update(T t);

    public void deleteById(Long id);

    //id 1,2,3   name aa,bb,cc
    public void deleteByProperty(List<Object> list, String property);

    public T findById(Long id);

    public T findByWhere(T t);

    public List<T> findByWhereList(T t);

    public PageInfo<T> findByPageWhere(T t,int page,int rows);
}
